package cn.siat.gene.service.impl;


import cn.siat.gene.domain.ProgrammeFlieMinio;
import cn.siat.gene.mapper.ProgrammeFileMinioMapper;
import cn.siat.gene.service.IProgrammeFlieMinioService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProgrammeFileMinioImpl extends ServiceImpl<ProgrammeFileMinioMapper, ProgrammeFlieMinio> implements IProgrammeFlieMinioService {

    @Autowired
    private ProgrammeFileMinioMapper programmeFileMinioMapper;
    @Override
    public List<ProgrammeFlieMinio> queryFileListById(String genomeDataId) {

        QueryWrapper<ProgrammeFlieMinio> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("programme_file_id", genomeDataId);
        return programmeFileMinioMapper.selectList(queryWrapper);
    }
}
